<?php

namespace frontend\modules\tsline\controllers;

use Yii;
use frontend\components\Controller;
use frontend\modules\tsline\models\ArticleCommentForm;

/**
 * 发布文章评论
 * CommentController controller for the `tsline` module
 */
class CommentController extends Controller {

    public $modelClass = 'frontend\modules\tsline\models\CommentSearch';

    /**
     * 文章评论列表
     * @return string
     */
    public function actionIndex($id) {
        /* @var $modelClass \api\modules\tsline\models\CommentSearch */
        $modelClass = new $this->modelClass;
        return $modelClass->search($id);
    }

}
